<%@page language="java"
	import="com.icss.daos.*,com.icss.beans.*,java.util.*"
	pageEncoding="UTF-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0036)http://www.imgso.com/forum-18-1.html -->
<HTML xmlns="">
<HEAD>
<TITLE>搜索</TITLE>
<META content="text/html; charset=gbk" http-equiv=Content-Type>


<LINK rel=stylesheet type=text/css
	href="<%=basePath %>BBS/second_files/style_7_common.css">
<LINK rel=stylesheet type=text/css
	href="<%=basePath %>BBS/second_files/scriptstyle_7_forumdisplay.css">


<SCRIPT type=text/javascript
	src="<%=basePath %>BBS/second_files/common.js"></SCRIPT>

</HEAD>

<BODY>

<DIV id=header>
<DIV class="wrap s_clear">
<H2><A><IMG border=0 src="<%=basePath %>BBS/imag/logo_2.gif">
</A></H2>
<DIV id=ad_headerbanner></DIV>
</DIV>
</DIV>
<DIV id=nav></DIV>
<DIV id=ad_img>
<DIV id=ad_img_l><A target=_blank><IMG
	src="<%=basePath %>BBS/second_files/top_ad_1.gif" width=700 height=50>
</A></DIV>
<DIV id=ad_img_r><A target=_blank><IMG
	src="<%=basePath %>BBS/second_files/top_ad_1_1.gif" width=260 height=50>
</A></DIV>
</DIV>
<DIV id=ad_text></DIV>
<DIV id=wrap class="wrap s_clear">
<DIV class=main>
<DIV class=content>
<DIV id=modarea class=s_clear>
<DIV class=list><SPAN class=headactions><IMG
	id=modarea_c_img class=toggle title=收起/展开 " alt=收起/展开
	src="<%=basePath %>BBS/second_files/collapsed_no.gif"> </SPAN>
<H3><A id=tab_2 class=current href="javascript:;">本版规则</A></H3>
</DIV>
<DIV id=modarea_c>
<DIV id=tab_c_2 class=rule>本版部分风格模板搜集于互联网</DIV>
</DIV>
</DIV>
<DIV class="pages_btns s_clear"></DIV>
<DIV class=threadtype>
<P><STRONG>全部</STRONG></P>
</DIV>
<DIV style="POSITION: relative" id=threadlist
	class="threadlist datalist">



<TABLE class=datatable cellSpacing=0 summary=forum_18 cellPadding=0
	border="1">
	<THEAD class=colplural>

		<TR>
			<TD colSpan=2>&nbsp; <A id=filtertype class=dropmenu
				onclick="showMenu({'ctrlid':this.id});" href="javascript:;">类型</A></TD>
			<TH>
			<UL class="itemfilter s_clear">
				<LI>主题:</LI>
			</UL>
			</TH>
			<TD class=author><A class="order ">作者/时间</A></TD>
			<TD class=nums><A class="order ">回复/</A>&nbsp; <A
				class="order ">查看</A></TD>
			<TD class=lastpost><CITE><A class="order order_active">最后发表</A>
			</CITE></TD>
		</TR>
	</THEAD>

	<%
								String choose = request.getParameter("choose");
								String cont = request.getParameter("cont");
								ArticleDao dao = new ArticleDao();
								ArticleVO vo = new ArticleVO();
								dao.close();
								if (choose.equals("articleName")) {

									dao.getArticleByName(cont);
									//ArrayList<ArticleVO> articlevos = articledao.getArticleByBoardID(boardID);
									//for(ArticleVO articlevo : articlevos ){
							%>

	<TBODY id=stickthread_418>
		<TR>
			<TD class=folder><A title=新窗口打开><IMG
				ȫsrc="<%=basePath%>BBS/second_files/pin_3.gif"> </A></TD>
			<TD class=icon>&nbsp;</TD>
			<TH class="subject common"><LABEL> &nbsp; </LABEL> <SPAN
				id=thread_418><A style="COLOR: #ee1b2e"
				href="<%=basePath%>BBS/tiezi.jsp?aid=<%=vo.getAid()%>"><%=vo.getArticleName()%>
			</A> </SPAN></TH>
			<TD class=author><CITE><A><%=vo.getAuthorName()%> </A> </CITE><EM><%=vo.getCreateTime()%>
			</EM></TD>
			<TD class=nums><STRONG>6</STRONG>/ <EM>3095</EM></TD>
			<TD class=lastpost><CITE><A>usual</A> </CITE> <EM><A>2010-3-1
			21:59</A> </EM></TD>
		</TR>
	</TBODY>

	<%
							}
							%>

	<%
									if (choose.equals("author")) {

									ArrayList<ArticleVO> articlevos = dao.getArticleByuserName(cont);
									for (ArticleVO articlevo : articlevos) {
							%>
	<TBODY id=stickthread_418>
		<TR>
			<TD class=folder><A title=新窗口打开><IMG
				ȫsrc="<%=basePath%>BBS/second_files/pin_3.gif"> </A></TD>
			<TD class=icon>&nbsp;</TD>
			<TH class="subject common"><LABEL> &nbsp; </LABEL> <SPAN
				id=thread_418><A style="COLOR: #ee1b2e"
				href="<%=basePath%>BBS/tiezi.jsp?aid=<%=articlevo.getAid()%>"><%=articlevo.getArticleName()%>
			</A> </SPAN></TH>
			<TD class=author><CITE><A><%=articlevo.getAuthorName()%>
			</A> </CITE><EM><%=articlevo.getCreateTime()%> </EM></TD>
			<TD class=nums><STRONG>6</STRONG>/ <EM>3095</EM></TD>
			<TD class=lastpost><CITE><A>usual</A> </CITE> <EM><A>2010-3-1
			21:59</A> </EM></TD>
		</TR>
	</TBODY>

	<%
								}
								}
							%>


	<%
									if (choose.equals("bid")) {
									int bid = Integer.parseInt(cont);
									ArrayList<ArticleVO> articlevos = dao.getArticleBybid(bid);
									for (ArticleVO articlevo : articlevos) {
							%>
	<TBODY id=stickthread_418>
		<TR>
			<TD class=folder><A title=新窗口打开><IMG
				ȫsrc="<%=basePath%>BBS/second_files/pin_3.gif"> </A></TD>
			<TD class=icon>&nbsp;</TD>
			<TH class="subject common"><LABEL> &nbsp; </LABEL> <SPAN
				id=thread_418><A style="COLOR: #ee1b2e"
				href="<%=basePath%>BBS/tiezi.jsp?aid=<%=articlevo.getAid()%>"><%=articlevo.getArticleName()%>
			</A> </SPAN></TH>
			<TD class=author><CITE><A><%=articlevo.getAuthorName()%>
			</A> </CITE><EM><%=articlevo.getCreateTime()%> </EM></TD>
			<TD class=nums><STRONG>6</STRONG>/ <EM>3095</EM></TD>
			<TD class=lastpost><CITE><A>usual</A> </CITE> <EM><A>2010-3-1
			21:59</A> </EM></TD>
		</TR>
	</TBODY>


	<%
								}
								}
							%>

	<%
									if (choose.equals("boardId")) {
									int boardId = Integer.parseInt(cont);
									//dao.getArticleByBoardID(boardId);
									ArrayList<ArticleVO> articlevos = dao.getArticleBybid(boardId);
									for (ArticleVO articlevo : articlevos) {
							%>

	<TBODY id=stickthread_418>
		<TR>
			<TD class=folder><A title=新窗口打开 target=_blank><IMG
				ȫsrc="<%=basePath%>BBS/second_files/pin_3.gif"> </A></TD>
			<TD class=icon>&nbsp;</TD>
			<TH class="subject common"><LABEL> &nbsp; </LABEL> <SPAN
				id=thread_418><A style="COLOR: #ee1b2e"
				href="<%=basePath%>BBS/tiezi.jsp?aid=<%=articlevo.getAid()%>"><%=articlevo.getArticleName()%>
			</A> </SPAN></TH>
			<TD class=author><CITE><A><%=articlevo.getAuthorName()%>
			</A> </CITE><EM><%=articlevo.getCreateTime()%> </EM></TD>
			<TD class=nums><STRONG>6</STRONG>/ <EM>3095</EM></TD>
			<TD class=lastpost><CITE><A>usual</A> </CITE> <EM><A>2010-3-1
			21:59</A> </EM></TD>
		</TR>
	</TBODY>

	<%
								}
								}
							%>

</TABLE>
</DIV>

<DIV class="pages_btns s_clear"></DIV>
</DIV>
</DIV>


</DIV>


</BODY>
</HTML>
